<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('TenUser/edit')}">
        <input type="hidden" name="id" value="{$info['id']|default='0'}">
        <input type="hidden" name="username" value="{$info['username']|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('账号')}</label>
            <div class="col-sm-8">
                <p class="form-control-static">{$info['username']|default=''}</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('real name')}</label>
            <div class="col-sm-8">
                <input name="realname" class="form-control" type="text" placeholder="{:lang('real name')}"
                       value="{$info['realname']|default=''}"/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('gender')}</label>
            <div class="col-sm-8">
                <div class="radio i-checks">
                    <input type="radio" name="gender" value="1" {eq name="$info['gender']" value='1' } checked{/eq}/> {:lang('male')}
                    <input type="radio" name="gender" value="2" {eq name="$info['gender']" value='2' } checked{/eq}/> {:lang('female')}
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('手机电话')}</label>
            <div class="col-sm-8">
                <input name="mobile" class="form-control" type="text" placeholder="{:lang('手机号码')}"
                       value="{$info['mobile']|default=''}"/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">QQ</label>
            <div class="col-sm-8">
                <input name="qicq" class="form-control" type="text"  value="{$info['qicq']|default=''}"/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('email')}</label>
            <div class="col-sm-8">
                <input name="email" class="form-control" type="email" placeholder="{:lang('入')}{:lang('email')}"
                       value="{$info['email']|default=''}"/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('所属企业')}</label>
            <div class="col-sm-10">
                <select name="ten_tenant_id" class="chosen-select">
                    <option value="0">{:lang('请选择')}</option>
                    {volist name="$info.tenant_list" id="vo"}
                    <option value="{$vo.id}" {eq name="$info['ten_tenant_id']" value="$vo['id']" } selected{/eq}>{$vo.company}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('默认企业')}</label>
            <div class="col-sm-10">
                <select name="init_tenant_id" class="chosen-select">
                    <option value="0">{:lang('请选择')}</option>
                    {volist name="$info.tenant_list" id="vo"}
                    <option value="{$vo.id}" {eq name="$info['init_tenant_id']" value="$vo['id']" } selected{/eq}>{$vo.company}</option>
                    {/volist}
                </select>
           </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('描述')}</label>
            <div class="col-sm-8">
                <textarea name="remark" class="form-control" cols="80" rows="2">{$info['remark']|default=''}</textarea>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="admin@layout/save_btn"}
            </div>
        </div>
    </form>
</div>